import { createRouter, createWebHistory } from "vue-router";
import Home from "./views/Home.vue";
import Login from "./views/Login.vue";
import Dashboard from "./views/Dashboard.vue";
import Learning from "./views/Learning.vue";
import Practice from "./views/Practice.vue";
import Enhancement from "./views/Enhancement.vue"; // 新增能力提升页面
import Analysis from "./views/Analysis.vue";

const routes = [
  { path: "/", name: "Home", component: Home },
  { path: "/login", name: "Login", component: Login },
  { path: "/dashboard", name: "Dashboard", component: Dashboard },
  { path: "/learning", name: "Learning", component: Learning },
  { path: "/practice", name: "Practice", component: Practice },
  { path: "/enhancement", name: "Enhancement", component: Enhancement }, // 新增路由
  { path: "/analysis", name: "Analysis", component: Analysis },
];

const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router;
